from flask import jsonify

#:commom method
class Common_Methd(object):
	
	@staticmethod
	def returnTrueJson(data, msg="Request successful"):
		return jsonify({
			"status": 1,
			"data": data,
			"msg": msg
		})
	
	@staticmethod
	def returnFalseJson(data=None, msg="Request error"):
		return jsonify({
			"status": 0,
			"data": data,
			"msg": msg
		})
